#include "Aggregate.h"
#include "Iterator.h"

using namespace std;

Aggregate::Aggregate(){
}

Aggregate::~Aggregate(){
}

ConcreteAggregate::ConcreteAggregate(){
}

ConcreteAggregate::~ConcreteAggregate(){
}

Iterator* ConcreteAggregate::CreateIterator(){
	return new ConcreteIterator(this);
}

int ConcreteAggregate::Count(){
	return this->_items.size();
}

string ConcreteAggregate::GetItem(int index){
	return this->_items[index];
}

void ConcreteAggregate::SetItem(int index, string value)
{
	vector<string>::iterator it = this->_items.begin();
	/*it = */_items.insert(it + index, value);
}